#include "Account_t.h"

Account_t::~Account_t() {
	delete m_Account; // delete implementation created by Factory
	m_Account=0;
}

Account_t::Account_t(Bank_t* b, int accountType, int percent, int date, int period) {
	m_Account = AccountFactory::CreateAccount(b, accountType, percent, date, period);	
}

void Account_t::Update(Bank_t* chngBank, const string& message) {
	m_Account->Update(chngBank, message);
}
